package com.ihisun.tmhcms.security.securityservice.impl;

import com.ihisun.tmhcms.security.securitdao.SysMenuDao;
import com.ihisun.tmhcms.security.securityservice.SysMenuService;
import com.ihisun.tmhcms.security.entity.SysMenuEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysMenuServiceImpl implements SysMenuService {
    @Resource
    SysMenuDao sysMenuDao;

    @Override
    public List<SysMenuEntity> selectSysMenuByUserId(Long userId) {
        List<SysMenuEntity> byMenuId = sysMenuDao.findByMenuId(userId);
        return byMenuId;
    }
}
